import App from './App.vue'
import 'remixicon/fonts/remixicon.css'
import {
	createSSRApp
} from 'vue'

import uviewPlus from 'uview-plus'
import {
	createPinia
} from 'pinia'
import piniaPersist from 'pinia-plugin-persist'

export function createApp() {
	const app = createSSRApp(App)
	const pinia = createPinia()
	pinia.use(piniaPersist)
	app.use(uviewPlus)
	app.use(pinia)
	return {
		app,
		pinia
	}
}